package com.huashi.dealer.modular.business.order.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单导出VO
 * 用于Excel导出功能，表头结构与PHP项目保持一致
 *
 * @author 谭陈强
 * @since 2025-08-15
 */
@Data
public class OrderExportVo {

    @ExcelProperty("订单号")
    private String orderNo;

    @ExcelProperty("商品编码")
    private String goodsNo;

    @ExcelProperty("商品名称")
    private String goodsName;

    @ExcelProperty("商品规格")
    private String goodsSkuSpec;

    @ExcelProperty("商品单价")
    private BigDecimal goodsMoney;

    @ExcelProperty("商品价格")
    private BigDecimal goodsPrice;

    @ExcelProperty("购买数量")
    private Integer totalNum;

    @ExcelProperty("商品总价")
    private BigDecimal totalPrice;

    @ExcelProperty("条形码")
    private String barCode;

    @ExcelProperty("订单总额")
    private BigDecimal orderTotalPrice;

    @ExcelProperty("实付金额")
    private BigDecimal payPrice;

    @ExcelProperty("下单时间")
    private LocalDateTime createTime;

    @ExcelProperty("买家")
    private String buyerName;

    @ExcelProperty("买家留言")
    private String buyerRemark;

    @ExcelProperty("收货姓名")
    private String receiverName;

    @ExcelProperty("联系电话")
    private String receiverPhone;

    @ExcelProperty("收货人地址")
    private String receiverAddress;

    @ExcelProperty("发货状态")
    private String deliveryStatusText;

    @ExcelProperty("发货时间")
    private LocalDateTime deliveryTime;

    @ExcelProperty("订单状态")
    private String orderStatusText;
}
